package lab02.test30;

import java.util.Scanner;
//如何用List来解决问题
public class Test {
    public static void main(String[] args) {
        double[] scores  = new double[5];
        Scanner scanner = new Scanner(System.in);
        for (int i=0;i<5;i++){
            scores[i]=scanner.nextDouble();
        }

        double sum =0;
        for (int i=0;i<5;i++){
            sum += scores[i];
        }
        System.out.println("平均分是："+sum/5);



    }
}
